﻿#!/usr/bin/env python3

from tempfile import *

def main():
    '''tmpfile -  临时文件'''
    print(main.__doc__)
    print("="*30)

    tmpf = TemporaryFile()
    tmpf.write(b"hello")
    tmpf.seek(0)
    print(tmpf.read())

if __name__=='__main__':
    main()
